import request from '@/utils/request'

// 权限管理接口

// 获取角色列表
export const roleList = () => {
  return request('/roles')
}

// 添加
export const addRoleList = (data) => {
  return request.post('/roles', data)
}

// 编辑
export const editList = (id, data) => {
  return request.put(`/roles/${id}`, data)
}

// 删除
export const deleList = (id) => {
  return request.delete(`/roles/${id}`)
}
